{layout name="layout/layout" /}

	<div class="register_head">
		<img id="back" src="__STATIC__/index/img/return.png">
		<p>消息中心</p>
	</div>
	<div class="main">
		{if($on_look_project)}
		{foreach($on_look_project as $k=>$v)}
		<a class="msg_click" href="{:Url('index/message/project_details',['id'=>$v['id'],'type'=>'project'])}">
			<div class="msg_status"></div>
			<div class="msg_list" style="background-color: #fff;padding-top: 5px;padding-bottom: 5px;margin-top: 5px;">
				<div class="msg_message">
					<div class="msg_item">
						<span class="msg_title">项目状态变化</span>
						<span class="msg_date">{$v.sysdate}</span>
					</div>
					<div class="msg_content">
						<span class="msg_msg">{$v.address}--项目状态:{$v.prostatus}-积分状态:{$v.linkstatus}</span>
						<span class="msg_img"></span>
					</div>
				</div>
			</div>
		</a>

		{/foreach}
		{/if}
		{if($no_look_integral)}
		{foreach($no_look_integral as $k=>$v)}
		<a href="{:Url('index/message/project_details',['id'=>$v['id'],'type'=>'integral'])}">
			<div class="msg_status"></div>
			<div class="msg_list" style="background-color: #fff;padding-top: 5px;padding-bottom: 5px;margin-top: 5px;">
				<div class="msg_message">
					<div class="msg_item">
						<span class="msg_title">积分状态变化</span>
						<span class="msg_date">{$v.sysdate}</span>
					</div>
					<div class="msg_content">
						<span class="msg_msg">{$v.address}-积分状态:{$v.point}</span>
						<span class="msg_img"></span>
					</div>
				</div>
			</div>
		</a>

		{/foreach}

		{/if}
		{if($no_look_message)}
		{foreach($no_look_message as $k=>$v)}
		<a href="{:Url('index/message/project_details',['id'=>$v->id,'type'=>'message'])}">
			<div class="msg_status"></div>
			<div class="msg_list" style="background-color: #fff;padding-top: 5px;padding-bottom: 5px;margin-top: 5px;">
				<div class="msg_message">
					<div class="msg_item">
						<span class="msg_title">意见反馈回复</span>
						<span class="msg_date">{$v.created_at|date="Y-m-d",###}</span>
					</div>
					<div class="msg_content">
						<span class="msg_msg">关于{$v.address}{$v.title}的意见反馈回复</span>
						<span class="msg_img"></span>
					</div>
				</div>
			</div>
		</a>

		{/foreach}

		{/if}

		{if($look_message)}
		{foreach($look_message as $k=>$v)}
		<a href="{:Url('index/message/project_details',['id'=>$v->id,'type'=>'message'])}">
			<div class="msg_list" style="background-color: #fff;padding-top: 5px;padding-bottom: 5px;margin-top: 5px;">
				<div class="msg_message">
					<div class="msg_item">
						<span class="msg_title">意见反馈回复</span>
						<span class="msg_date">{$v.created_at|date="Y-m-d",###}</span>
					</div>
					<div class="msg_content">
						<span class="msg_msg">关于{$v.address}{$v.title}的意见反馈回复</span>
						<span class="msg_img"></span>
					</div>
				</div>
			</div>
		</a>
		{/foreach}
		{/if}
	
		{if($msg)}
			{foreach($msg as $k=>$v)}
				<a href="{:Url('index/message/project_details',['id'=>$v->id,'type'=>'tuisong'])}">
			<div class="msg_list" style="background-color: #fff;padding-top: 5px;padding-bottom: 5px;margin-top: 5px;">
				<div class="msg_message">
					<div class="msg_item">
						<span class="msg_title">消息推送</span>
						<span class="msg_date">{$v.created_at|date="Y-m-d",###}</span>
					</div>
					<div class="msg_content">
						<span class="msg_msg">关于{$v.address}的消息推送</span>
						<span class="msg_img"></span>
					</div>
				</div>
			</div>
		</a>
			
			
			{/foreach}
		{/if}
	</div>

<script>
  // 取消提示的http地址显示
    window.alert = function(name) {
        var iframe = document.createElement("IFRAME");
        iframe.style.display = "none";
        iframe.setAttribute("src", 'data:text/plain,');
        document.documentElement.appendChild(iframe);
        window.frames[0].window.alert(name);
        iframe.parentNode.removeChild(iframe);
    }
	$(function(){
		$("#back").click(function(){
			window.history.go(-1);
		//	window.location.replace("{:Url('index/index/index')}");
		});
	})
</script>
